package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.dto.QrStatisticsList;
import com.yami.shop.bean.model.QrcodeTicket;
import com.yami.shop.bean.model.ReproductionQrcode;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReproductionQrcodeMapper extends BaseMapper<ReproductionQrcode> {

    IPage<ReproductionQrcode> pageData(PageParam<ReproductionQrcode> page, ReproductionQrcode param);

    List<QrcodeTicket> listData(@Param("prodId") Long prodId,@Param("batchId") Long batchId,@Param("activityId") Long activityId);

    List<QrStatisticsList> viewQr(@Param("activityId") Long activityId);
}
